/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mz2d.graphics.sprite.impl;

import java.awt.Color;
import java.awt.Image;
import mz2d.graphics.sprite.Sprite;

/**
 * An entity that serves as an object which is supposed to be drawn on the scren
 * @author Laptop
 */
public class DrawingEntity extends Sprite {

    private int drawPosX;
    private int drawPosY;
    private int layer;

    public DrawingEntity(Image image) {
        super(image);
        drawPosX = 0;
        drawPosY = 0;
        layer = 1; //1 == standard level 0 == background
    }

    public DrawingEntity(Sprite sprite) {
        super(sprite.getImage());
    }

    public DrawingEntity(Image image, Color color) {
        super(image, color);
    }

    public void setDrawPosX(int drawPosX) {
        this.drawPosX = drawPosX;
    }

    public void setDrawPosY(int drawPosY) {
        this.drawPosY = drawPosY;
    }

    public int getDrawPosX() {
        return drawPosX;
    }

    public int getDrawPosY() {
        return drawPosY;
    }

    public void setLayer(int layer) {
        this.layer = layer;
    }

    public int getLayer() {
        return layer;
    }
}
